import {
  get,
  post,
  //postForm,
  del,
} from "@/utils/http";
const packageName = `/back-api`;

/**
 * 调拨单
 */
// 获取车辆调拨单入/出库详情
export function getDataCarTransferOrderInDetailPadList(params) {
  return get(
    `${packageName}/dataCarTransferOrder/getDataCarTransferOrderInDetailPadList`,
    params
  );
}
// 获取车辆调拨单列表
export function getDataCarTransferOrderPadList(params) {
  return get(
    `${packageName}/dataCarTransferOrder/getDataCarTransferOrderPadList`,
    params
  );
}
// 保存车辆调拨单
export function saveDataCarTransferOrderPadList(params) {
  return post(
    `${packageName}/dataCarTransferOrder/saveDataCarTransferOrderPadList`,
    params
  );
}
// 出鱼
export function goOutDataCarTransferOrderOutDetailPad(params) {
  return post(
    `${packageName}/dataCarTransferOrder/goOutDataCarTransferOrderOutDetailPad`,
    params
  );
}
// 编辑车辆调拨入库单
export function saveDataCarTransferOrderInDetailPad(params) {
  return post(
    `${packageName}/dataCarTransferOrder/saveDataCarTransferOrderInDetailPad`,
    params
  );
}
// 保存车辆调拨单出库详情
export function saveDataCarTransferOrderOutDetailPad(params) {
  return post(
    `${packageName}/dataCarTransferOrder/saveDataCarTransferOrderOutDetailPad`,
    params
  );
}
// 审核车辆调拨入库单
export function approveDataCarTransferOrderInDetailPad(params) {
  return post(
    `${packageName}/dataCarTransferOrder/approveDataCarTransferOrderInDetailPad`,
    params
  );
}
// 审核车辆调拨出库单
export function approveDataCarTransferOrderPad(params) {
  return post(
    `${packageName}/dataCarTransferOrder/approveDataCarTransferOrderPad`,
    params
  );
}

/**
 * 入库详情
 */
// 获取车辆调拨单入库详情
export function getDataCarTransferOrderInDetail(params) {
  return get(
    `${packageName}/dataCarTransferOrderInDetail/getDataCarTransferOrderInDetail`,
    params
  );
}
// 删除车辆调拨单入库详情（平板）
export function delDataCarTransferOrderInDetail(params) {
  return del(
    `${packageName}/dataCarTransferOrderInDetail/delDataCarTransferOrderInDetail`,
    params
  );
}
/**
 * 出库详情
 */
// 获取车辆调拨单出库详情
export function getDataCarTransferOrderOutDetail(params) {
  return get(
    `${packageName}/dataCarTransferOrderOutDetail/getDataCarTransferOrderOutDetail`,
    params
  );
}
// 删除车辆调拨单出库详情（平板）
export function delDataCarTransferOrderOutDetail(params) {
  return del(
    `${packageName}/dataCarTransferOrderOutDetail/delDataCarTransferOrderOutDetail`,
    params
  );
}
// 删除车辆调拨单
export function delDataCarTransferOrder(params) {
  return del(
    `${packageName}/dataCarTransferOrder/delDataCarTransferOrder`,
    params
  );
}
